<div class="left">
    <?php $leftMenus = $this->permissionTree['id_'.$this->permissionParentIds[1]]['children']; ?>
    <?php if(is_array($leftMenus)) foreach ($leftMenus as $k1 => $v1): ?>
        <?php if ($v1['is_menu']): ?>
            <div class="leftMenuTitle"><?= ($this->uri->segment(1) == 'sc' || !$v1['title_en']) ? $v1['title'] : $v1['title_en'] ?></div>
            <div class="left2">
                <ul>
                    <?php if(is_array($v1['children'])) foreach ($v1['children'] as $k2 => $v2): ?>
                        <?php if ($v2['is_menu']): ?>
                                <li>
                                    <a 
                                        href="<?= $v2['url'] ?>"
                                        class="<?php echo $this->permissionParentIds[3] == $v2['id'] ? 'clscur_left' : ''; ?>"
                                    ><?= ($this->uri->segment(1) == 'sc' || !$v2['title_en']) ? $v2['title'] : $v2['title_en'] ?></a>
                                </li>
                        <?php endif;?>
                    <?php endforeach;?>
                </ul>
            </div>
        <?php endif; ?>
    <?php endforeach;?>
</div>